//
//  AccidentsDetectionConstans.h
//  BCN Emergencies
//
//  Created by Luis Enrique López Martínez on 15/12/11.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#ifndef BCN_Emergencies_AccidentsDetectionConstans_h
#define BCN_Emergencies_AccidentsDetectionConstans_h

#define metersSecondToMilesPerHour 2.2369362920544025

//VALUES OF THIS CONSTANTS MUST BE REVIEWED AND SET WITH CORRECT VALUES

//minimum acceleration in Gs
#define minimunAccelerationThershold 2

//minimum sound in decibels (dB)
#define minimumSoundThreshold 140

// minimum speed in miles per hour
#define minimumSpeedThershold 20

//Minimum distance that a vehicle travels at a speed slower than minimumSpeedThershold after an accident detection is deactivated
// in feets
#define minimumDistanceTraveledBeforeAccidentDetectionIsDeactivated 165 // 100 meters aprox.

//sound adjustable weighting factor applied to the sound event that denotes its importance in the accident detection model. Higher values for α allow collisions at low speed or where the safety systems significantly dampen the impact, which can be detected through a combination of sound and acceleration

#define soundFactor 1

#define accidentDetectionThershold 1.52

#endif
